package Coding.Collection;

import java.util.ArrayList;

public class CA {

    public static void main(String[] args) {


        Collection collection = new ArrayList();

        collection.add(new Point(1,2));
        collection.add(new Point(3,4));
        collection.add(new Point(5,6));
        collection.add(new Point(7,8));
        collection.add(new Point(9,10));
        System.out.println(collection);

        Point point = new Point(1, 2);
        collection.contains(point);
    }
}
